package io.github.tangwan.jdk8.base;

/**
 * @author tangwan
 * @version V1.0
 * created on 2021/10/20 14:55
 * @since JDK 1.8
 */
public class FuctionInterface1Impl implements FuctionInterface1,FuctionInterface2 {

    @Override
    public String run(String msg) {
        return "hello " + msg;
    }

    /**
     * 接口都有同一个default方法时,实现类不知道继承哪个default方法,此时实现类会重写这个default方法
     * @return
     */
    @Override
    public String run1() {
        return null;
    }

    @Override
    public String run3() {
        return null;
    }

}
